package com.itheima.stock.controller;

import com.itheima.stock.service.StockTimerTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class StockController {
    @Autowired
    private StockTimerTaskService stockTimerTaskService;
    @GetMapping("stock/inners")
    public void inners(){
        stockTimerTaskService.getInnerMarketInfo();
    }
    @GetMapping("stock/getstock")
    public void getstock(){
        stockTimerTaskService.getstock();
    }
    @GetMapping("stock/getblock")
    public void getbolck(){
        stockTimerTaskService.getblock();
    }
}
